<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo ($ts['site']['site_name']); ?>管理后台</title>
<link href="__PUBLIC__/admin/style.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/js/tbox/box.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/tbox/box.js"></script>
</head>
<body>

<div class="so_main">
  <div class="page_tit">站点配置</div>
  
  <div class="form2">
  	<form method="post" action="<?php echo U('Global/doSetSiteOpt');?>">
    <dl class="lineD">
      <dt>站点名称：</dt>
      <dd>
        <input name="site_name" type="text" value="<?php echo ($site_name); ?>">
      </dd>
    </dl>
    <dl class="lineD">
      <dt>slogan：</dt>
      <dd>
        <input name="site_slogan" type="text" value="<?php echo ($site_slogan); ?>">
      </dd>
    </dl>
    <dl class="lineD">
      <dt>页面头信息关键字：</dt>
      <dd>
        <input name="site_header_keywords" type="text" value="<?php echo ($site_header_keywords); ?>">
        <p>多个使用英文的“|”分割</p>
      </dd>
    </dl>
    <dl class="lineD">
      <dt>页面头信息描述：</dt>
      <dd>
        <input name="site_header_description" type="text" value="<?php echo ($site_header_description); ?>">
        <p>多个使用英文的“|”分割</p>
      </dd>
    </dl>
    <dl class="lineD">
      <dt>站点状态：</dt>
      <dd>
        <label>
        	<input name="site_closed" type="radio" value="1" <?php if(($site_closed)  ==  "1"): ?>checked<?php endif; ?>>关闭
        </label>
        <br>
        <label>
        	<input name="site_closed" type="radio" value="0" <?php if(($site_closed)  ==  "0"): ?>checked<?php endif; ?>>开启
        </label>
      </dd>
    </dl>
    <dl class="lineD">
      <dt>站点关闭理由：</dt>
      <dd>
        <input name="site_closed_reason" type="text" value="<?php echo ($site_closed_reason); ?>">
      </dd>
    </dl>
    <dl class="lineD">
      <dt>是否允许游客匿名访问：</dt>
      <dd>
        <label>
            <input name="site_anonymous" type="radio" value="1" <?php if(($site_anonymous)  ==  "1"): ?>checked<?php endif; ?>>允许
        </label>
        <br>
        <label>
            <input name="site_anonymous" type="radio" value="0" <?php if(($site_anonymous)  ==  "0"): ?>checked<?php endif; ?>>禁止
        </label>
      </dd>
    </dl>
    <dl class="lineD">
      <dt>是否启用个性化域名：</dt>
      <dd>
        <label>
            <input name="site_user_domain_on" type="radio" value="1" <?php if(($site_user_domain_on)  ==  "1"): ?>checked<?php endif; ?>>启用
        </label>
        <br>
        <label>
            <input name="site_user_domain_on" type="radio" value="0" <?php if(($site_user_domain_on)  !=  "1"): ?>checked<?php endif; ?>>禁用
        </label>
      </dd>
    </dl>
    <dl class="lineD">
      <dt>左侧的应用名超过4个字时：</dt>
      <dd>
        <label>
            <input name="site_appalias_wordwrap" type="radio" value="1" <?php if(($site_appalias_wordwrap)  ==  "1"): ?>checked<?php endif; ?>>换行
        </label>
        <br>
        <label>
            <input name="site_appalias_wordwrap" type="radio" value="0" <?php if(($site_appalias_wordwrap)  ==  "0"): ?>checked<?php endif; ?>>隐藏多余字符
        </label>
      </dd>
    </dl>
    <dl class="lineD">
      <dt>ICP/IP/域名备案：</dt>
      <dd>
        <input name="site_icp" type="text" value="<?php echo ($site_icp); ?>">
        <p>例如：京ICP备04000001号，显示在所有页面的最下面</p>
      </dd>
    </dl>
    <dl class="lineD">
      <dt>风格包：</dt>
      <dd>
          <select name="site_theme">
              <?php if(is_array($theme_list)): $i = 0; $__LIST__ = $theme_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$theme): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($theme["filename"]); ?>" <?php if($site_theme == $theme['filename']){ ?>selected<?php } ?>><?php echo ($theme["filename"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
          </select>
      </dd>
    </dl>
    <dl>
      <dt>开启验证码：</dt>
      <dd>
        <label>
        	<input name="site_verify[]" type="checkbox" value="register" <?php if(in_array('register',$site_verify)) { ?>checked<?php } ?>>注册页面
        </label>
        <br>
        <label>
        	<input name="site_verify[]" type="checkbox" value="login" <?php if(in_array('login',$site_verify)) { ?>checked<?php } ?>>登录页面
        </label>
      </dd>
    </dl>
    <div class="page_btm">
      <input type="submit" class="btn_b" value="提交" />
    </div>
    </form>
  </div>

</div>
</body>
</html>